<?php

//*******************************************************
//* JAccelerator Component
//* http://fun.kubera.org
//* (C) Radoslaw Kubera
//* license http://www.gnu.org/copyleft/gpl.html GNU/GPL
//*******************************************************

/** ensure this file is being included by a parent file */
defined('_VALID_MOS') or die();

class TOOLBAR_joomlacache {
	function MENU_GLOBAL() {
		$task = mosGetParam($_REQUEST, 'task', 'config');
		mosMenuBar::startTable();
		if($task == 'modules') {
			mosMenuBar::custom('save_modules', '-save', '', _JOOMLACACHE_SAVE, false);
			mosMenuBar::custom('modules', '-cancel', '', _JOOMLACACHE_CANCEL, false);
			mosMenuBar::spacer();
		}elseif($task == 'components') {
			mosMenuBar::custom('save_components', '-save', '', _JOOMLACACHE_SAVE, false);
			mosMenuBar::custom('components', '-cancel', '', _JOOMLACACHE_CANCEL, false);
			mosMenuBar::spacer();
		}elseif($task == 'config') {
			mosMenuBar::custom('save_config', '-save', '', _JOOMLACACHE_SAVE, false);
			mosMenuBar::custom('config', '-cancel', '', _JOOMLACACHE_CANCEL, false);
			mosMenuBar::spacer();
		}
		mosMenuBar::custom('config', '-x', '', _JOOMLACACHE_CONFIG, false);
		mosMenuBar::custom('components', '-publish', '', _JOOMLACACHE_COMPONENTS, false);
		mosMenuBar::custom('modules', '-publish', '', _JOOMLACACHE_MODULES, false);
		mosMenuBar::custom('about', '-help', '', _JOOMLACACHE_ABOUT, false);
		mosMenuBar::endTable();
	}
}

?>
